<template>
  <div>
    <van-tag
      type="primary"
      v-for="(item, index) in history"
      :key="index"
      v-show="index < 6"
      >{{ item }}</van-tag
    >
  </div>
</template>
<script>
export default {
  data() {
    return {
      history: [],
    };
  },
  mounted() {
    this.history = JSON.parse(localStorage.getItem("history"));
  },
};
</script>
